# Tanım: Bilimsel Python Geliştirme Ortamı
# URL: https://www.spyder-ide.org/
# Paketçi: Cihan_Alkan
# Gerekler: qt5 python3 python3-pyzmq python3-pyqt5 python3-setuptools python3-sphinx desktop-file-utils icu gtk-update-icon-cache python3-qtpy python3-qtawesome python3-pickleshare python3-jinja python3-docutils
#Grup: geliştirme

isim=spyder
surum=3.3.1
devir=1

kaynak=(https://github.com/spyder-ide/${isim}/archive/v${surum}.tar.gz::${isim}-${surum}.tar.gz)

derle() {

  cd "${isim}-${surum}"
  python3 setup.py build

  python3 setup.py install --prefix=/usr --root="${PKG}" --optimize=1
  # Install license file
  install -D -m644 "LICENSE" "${PKG}/usr/share/licenses/${isim}/LICENSE"
  install -D -m644 "spyder/images/spyder.svg" "${PKG}/usr/share/icons/hicolor/scalable/apps/${isim}.svg"
  rm -f "${PKG}/usr/bin/spyder_win_post_install.py"
  ln -s "/usr/bin/spyder3" "${PKG}/usr/bin/spyder"
}